//    Copyright (C) Kherty.  All rights reserved.
using System;
using OpenLS.Spreadsheet.Internals;
using OpenLS.Spreadsheet.Parsing;

namespace OpenLS.Spreadsheet.Expressions
{
    static class FormulaHelper
    {
        static FormulaHelper()
        {
            string sep = StringTable.FormulaSeparator;
            FormulaArgumentSeparatorLocalized = sep[0];
            switch (FormulaArgumentSeparatorLocalized)
            {
                case ',': FormulaArgumentSeparatorIdLocalized = TokenId.Coma; break;
                case ';': FormulaArgumentSeparatorIdLocalized = TokenId.SemiColon; break;
                default: throw new NotSupportedException();
            }
        }
        public static readonly char FormulaArgumentSeparatorLocalized;
        public static readonly TokenId FormulaArgumentSeparatorIdLocalized;
    }
}
